home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / PicturePaneEditor.h < prev    next >
Text File  |  1997-09-08  |  2KB  |  71 lines

  1. /*
  2.  *  File:       PicturePaneEditor.h
  3.  *  Summary:       A view that knows how to edit a TPicturePane.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1997 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <1>     9/08/97    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZPicturePane.h>
  17.  
  18. #include "BasePaneEditor.h"
  19.  
  20.  
  21. // ===================================================================================
  22. //    class CPicturePaneCommand
  23. // ===================================================================================
  24. class CPicturePaneCommand : public CBaseEditPaneCommand<TPicturePane, SPicturePaneInfo> {
  25.  
  26.     typedef CBaseEditPaneCommand<TPicturePane, SPicturePaneInfo> Inherited;
  27.  
  28. //-----------------------------------
  29. //    Initialization/Destruction
  30. //
  31. public:
  32.     virtual             ~CPicturePaneCommand();
  33.     
  34.                         CPicturePaneCommand(TPicturePane* pane, const SPicturePaneInfo& oldInfo, const SPicturePaneInfo& newInfo);
  35.     
  36. //-----------------------------------
  37. //    Inherited API
  38. //
  39. public:
  40.     virtual    void         UpdatePane(const SPicturePaneInfo& newInfo);
  41. };
  42.  
  43.  
  44. // ===================================================================================
  45. //    CPicturePaneEditor
  46. // ===================================================================================
  47. class CPicturePaneEditor : public CBasePaneEditor<TPicturePane, SPicturePaneInfo, CPicturePaneCommand> {
  48.  
  49.     typedef CBasePaneEditor<TPicturePane, SPicturePaneInfo, CPicturePaneCommand> Inherited;
  50.     
  51. //-----------------------------------
  52. //    Initialization/Destruction
  53. //
  54. public:
  55.     virtual                ~CPicturePaneEditor();
  56.                         
  57.                         CPicturePaneEditor(TView* superView);
  58.  
  59.     static     MReanimatable* Create(MReanimatable* parent);
  60.  
  61. //-----------------------------------
  62. //    Inherited API
  63. //
  64. protected:
  65.     virtual SPicturePaneInfo GetEditorInfo() const;
  66.             
  67.     virtual void         SetEditorInfo(const SPicturePaneInfo& info);
  68. };
  69.  
  70.  
  71.